<?php

class Mapcoord_model extends CI_Model {

    public function __construct() {
        parent::__construct();
    }
    
    public function getById($id) {
        $this->db->where('id', $id);
        return $this->db->get('mapcoord')->row();
    }
    
    public function getByCoords($x, $y) {
        $this->db->where('x', $x);
        $this->db->where('y', $y);
        return $this->db->get('mapcoord')->row();
    }

}

?>
